package com.origin.grid.framework.modules.search.serviceimpl;

import cn.hutool.core.convert.Convert;
import cn.hutool.core.text.CharSequenceUtil;
import cn.hutool.core.util.ArrayUtil;
import com.origin.grid.framework.cache.Cache;
import com.origin.grid.framework.cache.CachePrefix;
import com.origin.grid.framework.common.exception.ServiceException;
import com.origin.grid.framework.common.vo.PageVO;
import com.origin.grid.framework.modules.goods.entity.enums.GoodsAuthEnum;
import com.origin.grid.framework.modules.goods.entity.enums.GoodsStatusEnum;
import com.origin.grid.framework.modules.search.entity.dos.EsGoodsIndex;
import com.origin.grid.framework.modules.search.entity.dos.EsGoodsRelatedInfo;
import com.origin.grid.framework.modules.search.entity.dto.EsGoodsSearchDTO;
import com.origin.grid.framework.modules.search.entity.dto.ParamOptions;
import com.origin.grid.framework.modules.search.entity.dto.SelectorOptions;
import com.origin.grid.framework.modules.search.service.EsGoodsSearchService;
import com.origin.grid.framework.modules.search.utils.SqlFilter;
import com.alibaba.druid.util.StringUtils;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.*;
import java.util.stream.Collectors;

/**
 * ES商品搜索业务层实现
 *
 * @author paulG
 * @since 2020/10/16
 **/
@Slf4j
@Service
public class EsGoodsSearchServiceImpl implements EsGoodsSearchService {


    @Override
    public void searchGoods(EsGoodsSearchDTO searchDTO, PageVO pageVo) {

    }

    @Override
    public Page<EsGoodsIndex> searchGoodsByPage(EsGoodsSearchDTO searchDTO, PageVO pageVo) {
        return null;
    }

    @Override
    public EsGoodsRelatedInfo getSelector(EsGoodsSearchDTO goodsSearch, PageVO pageVo) {
        return null;
    }

    @Override
    public List<EsGoodsIndex> getEsGoodsBySkuIds(List<String> skuIds, PageVO pageVo) {
        return null;
    }

    @Override
    public EsGoodsIndex getEsGoodsById(String id) {
        return null;
    }
}
